package org.geometerplus.android.fbreader;

import org.zixuanstudio.ebook.R;

import android.app.Activity;
import android.graphics.Typeface;
import android.os.Bundle;
import android.text.SpannableString;
import android.text.Spanned;
import android.text.method.LinkMovementMethod;
import android.text.style.StyleSpan;
import android.text.style.URLSpan;
import android.widget.TextView;

public class ZXReaderAbout extends Activity{

	private static final String TAG = "ZXReaderAbout";
	
	private TextView  mZXReader;
	private TextView  mAuthor;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.zxreader_about);
		mZXReader = (TextView) findViewById(R.id.introduct);
		mAuthor = (TextView) findViewById(R.id.myself);
		
		mZXReader.setText(R.string.zxreader_info);
		
		 SpannableString ss = new SpannableString(
         "如果有开发建议,可以给我发邮件!");
		 ss.setSpan(new StyleSpan(Typeface.BOLD), 0, 6,
                 Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
		 ss.setSpan(new URLSpan("mailto:litton.van@gmail.com"), 0, 16,
                 Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
		 mAuthor.setText(ss);
		 mAuthor.setMovementMethod(LinkMovementMethod.getInstance());
		 
	}

	@Override
	protected void onDestroy() {
		// TODO Auto-generated method stub
		super.onDestroy();
	}

	@Override
	protected void onPause() {
		// TODO Auto-generated method stub
		super.onPause();
	}

	@Override
	protected void onRestart() {
		// TODO Auto-generated method stub
		super.onRestart();
	}

	@Override
	protected void onResume() {
		// TODO Auto-generated method stub
		super.onResume();
	}

	@Override
	protected void onStart() {
		// TODO Auto-generated method stub
		super.onStart();
	}

	@Override
	protected void onStop() {
		// TODO Auto-generated method stub
		super.onStop();
	}

}
